document.getElementById('button2').addEventListener('click',
    function(){
        window.location.href='main.html';
    }
);